package com.zxy.controller;

import com.zxy.pojo.dto.OperLogQueryDTO;
import com.zxy.pojo.entity.CourseContract;
import com.zxy.pojo.vo.CourseContractResponseVO;
import com.zxy.pojo.vo.OperLogVO;
import com.zxy.service.SysOperLogService;
import com.zxy.util.OperLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class SysOperLogController {
    @Autowired
    private SysOperLogService sysOperLogService;

    //分页查询日志信息
    @OperLog(title = "分页查询日志信息",businessType = 0,saveParams = true,saveResult = true)
   @GetMapping("/monitor/operlog/list")
   public CourseContractResponseVO<OperLogVO> selectOperLog(OperLogQueryDTO dto) {
       return sysOperLogService.selectOperLog(dto);
   }
}
